package com.dd.cloud.user.service.goods;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.cloud.user.entity.goods.ConversionGood;
import com.dd.cloud.user.req.goods.ConversionGoodReq;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 兑换商品表 服务类
 * </p>
 *
 * @author czg
 * @since 2024-01-18
 */
public interface IConversionGoodService extends IService<ConversionGood> {

    /**
     * 分页查询兑换列表
     * @param req
     * @return
     */
    Page<ConversionGood> queryConversionGoodRecordPage(ConversionGoodReq req);

    /**
     * 查询兑换详情
     * @param id 兑换id
     * @return
     */
    ConversionGood queryConversionGoodRecordDetail(Integer id);

    /**
     * 发货
     * @param id 兑换id
     * @param status 状态
     * @deprecated
     */
    void sendConversionGoods(Integer id,Integer status);

    /**
     * 导出excel 兑换列表
     * @param req
     * @param response
     */
    void exportConversionGoods(ConversionGoodReq req, HttpServletResponse response);

    /**
     * 查询兑换列表
     * @param req
     * @return
     */
    Page<ConversionGood> queryConversionGoodPage(ConversionGoodReq req);
}
